import request from '@/utils/request'

// 获取订单列表
export const getOrderList = function (data) {
  return request({
    url: '/api/order/list',
    method: 'post',
    data
  })
}

// 订单签到
export const orderSign = function (data) {
  return request({
    url: '/api/order/sign',
    method: 'post',
    data
  })
}

// 订单完成
export const orderFinish = function (data) {
  return request({
    url: '/api/order/finish',
    method: 'post',
    data
  })
}

// 获取订单详情
export const getOrderDetail = function (data) {
  return request({
    url: `/api/order/info?orderNo=${data}`,
    method: 'get'
  })
}

// 需求订单列表
export const getRequestOrderList = function (data) {
  return request({
    url: '/api/demand/order/search',
    method: 'post',
    data
  })
}

// 抢单
export const requestOrderCreate = function (data) {
  return request({
    url: '/api/order/create',
    method: 'post',
    data
  })
}

// 上传服务图片
export const orderConfirm = function (data) {
  return request({
    url: '/api/order/confirm',
    method: 'post',
    data
  })
}





